package com.quanyan.travel.enums;

public enum ErrorEnum implements BaseEnum {

    ERROR_PERSSION(-1,"FAILED","操作失败","重新登录"),
    ERROR_PARAM(-2,"FAILED","操作失败","参数不合法"),
    ERROR_DBERROR(-3,"FAILED","数据库问题","数据库查询失败"),
    ERROR_ORDER_ILLEGAL(-4,"FAILED","订单问题","非法订单"),
    ERROR_ORDER_LIMIT_OUT(-5,"FAILED","订单问题","报名人数超过限制"),
    ERROR_ORDER_TIME_OUT(-6,"FAILED","订单问题","报名时间超过限制"),
    ERROR_ORDER_DEADTIME_OUT(-7,"FAILED","订单问题","订单超时"),
    ERROR_ORDER_REPEAT(-8,"FAILED","订单问题","重复下单"),
    ERROR_ANALYZ_GJSON_ERROR(-9,"FAILED","数据问题","解析GJson出错"),
    ERROR_ORDER_UPDATE(-10, "FAILED","数据问题","订单更新失败"),
    ERROR_ORDER_REFUND(-10, "FAILED","数据问题","退款失败"),
    ERROR_DUBBO_SERVICE(-11, "FAILED","数据问题","数据调用失败"),
    ERROR_PAY_FAIL(-12,"FAILED","支付失败","支付失败"),
    ERROR_ORDER_DOUBLE(-13,"FAILED","订单问题","用户存在未支付订单"),
    ERROR_ORDER_REFUND_TIMEOUT(-14,"FAILED","订单问题","退款超过限定时间");

    private int id;

    private String code;

    private String name;

    private String label;

    ErrorEnum(int id, String code, String name, String label) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.label = label;
    }

    public int getId() {
        return this.id;
    }

    public String getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public String getLabel() {
        return this.label;
    }
}